//
//  FocusProgramTableViewCell.m
//  CoolFM
//
//  Created by 曹曹 on 16/9/23.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "FocusProgramTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "FocusProData.h"

@interface FocusProgramTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *avatar;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *latest;

@end

@implementation FocusProgramTableViewCell

- (void)setFocusData:(FocusProData *)focusData {
    _focusData = focusData;
    [_avatar sd_setImageWithURL:[NSURL URLWithString:_focusData.image_url]
               placeholderImage:[UIImage imageNamed:@""]];
    _name.text = _focusData.program_name;
    _latest.text = @"最近更新, 需要请求数据";
}

- (IBAction)showMoreDetail:(id)sender {
    NSLog(@"hhh");
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
